package org.dromara.timemate.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.timemate.domain.DeviceInfo;
import org.dromara.timemate.domain.vo.DeviceManageVo;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceInfo.class, reverseConvertGenerate = false)
public class DeviceManageBo extends BaseEntity {
    /**
     * 设备ID
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;
    /**
     * 手机号码
     */
    private String phonenumber;

    /**
     * 用户Id
     */
    @NotNull(message = "用户Id不能为空", groups = {AddGroup.class})
    private Long userId;

    /**
     * 穿戴人员id
     */
    private Long wearerId;

    /**
     * 设备名称
     */
    @NotNull(message = "设备类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String deviceType;

    /**
     * 设备名称
     */

    @NotNull(message = "设备名称不能为空", groups = {AddGroup.class,EditGroup.class})
    private String deviceName;


}
